package com.gzj.environment.model.biz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzj.environment.model.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 点位实体，采集数据的最小单位
 */
@TableName("biz_point_location")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PointLocation extends BaseEntity {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long moduleId; // 所属模块

    private String name; // 点位名称
    private BigDecimal longitude; // 经度
    private BigDecimal latitude; // 纬度
}
